package com.ruoyi.common.utils;

import java.util.Arrays;
import java.util.List;

public class ZeroUpStrUtile {

    public static List<String> spString(String str){
        return Arrays.asList(str.split("\\|"));
    }

    public static String randomStr(String str){
        List<String> parts = spString(str);
        int index = RandomUtile.rangInt(0,parts.size());
        return parts.get(index);
    }


    public static void main(String[] args) {
        String text = "one";
        System.out.println(randomStr(text));
    }
}
